const clientAppId = "107";
const company_id = "7";
const channelId = "9007";
const scenicAreaId = -1;
const version = process.env.NEXT_PUBLIC_ENV === 'production' ? "2" : "1";; //版本号

// 目的地 hashmap
const destination_map = {
  'linzhi': { id: 10, city: '林芝', url: '/linzhi' },
  'lasa': { id: 11, city: '拉萨', url: '/lasa' },
  'ali': { id: 12, city: '阿里', url: '/ali' },
  'shannan': { id: 13, city: '山南', url: '/shannan' },
  '': { id: 14, city: '', url: '' },
  'rikaze': { id: 15, city: '日喀则', url: '/rikaze' },
  'naqu': { id: 16, city: '那曲', url: '/naqu' },
  'changdu': { id: 17, city: '昌都', url: '/changdu' },
}

const match_destination_map = function (name) {
  switch (name) {
    case '林芝': return '/linzhi';
    case '拉萨': return '/lasa';
    case '阿里': return '/ali';
    case '山南': return '/shannan';
    case '那曲': return '/naqu';
    case '日喀则': return '/rikaze';
    case '昌都': return '/changdu';
    default: return '/'
}
}

// 默认分页
const pagination = {
  pageSize: 15
}

export {
  clientAppId,
  company_id,
  channelId,
  scenicAreaId,
  version,
  pagination,
  destination_map,
  match_destination_map
}
